package com.sunny.myproject.core.base.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.ui.Model;

public interface BaseMethod<T> {

	public String list(Model model, HttpServletRequest request,
			HttpServletResponse response);

	public String add(HttpServletRequest reuqest, HttpServletResponse response);

	public String edit(Model model, HttpServletRequest request,
			HttpServletResponse response);

	public String delete(HttpServletRequest request,
			HttpServletResponse response);

	public String save(HttpServletRequest request,
			HttpServletResponse response, T t);

	public String view(Model model, HttpServletRequest request,
			HttpServletResponse response);
}
